/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author mezouari
 */
@Entity
@Table(name = "ana")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ana.findAll", query = "SELECT a FROM Ana a"),
    @NamedQuery(name = "Ana.findByF", query = "SELECT a FROM Ana a WHERE a.f = :f"),
    @NamedQuery(name = "Ana.findByFfff", query = "SELECT a FROM Ana a WHERE a.ffff = :ffff"),
    @NamedQuery(name = "Ana.findByAaaaaaaaaa", query = "SELECT a FROM Ana a WHERE a.aaaaaaaaaa = :aaaaaaaaaa"),
    @NamedQuery(name = "Ana.findByAaaaaaaaaaaa", query = "SELECT a FROM Ana a WHERE a.aaaaaaaaaaaa = :aaaaaaaaaaaa"),
    @NamedQuery(name = "Ana.findByAaaaaaa", query = "SELECT a FROM Ana a WHERE a.aaaaaaa = :aaaaaaa")})
public class Ana implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "f")
    private Integer f;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ffff")
    private int ffff;
    @Basic(optional = false)
    @NotNull
    @Column(name = "aaaaaaaaaa")
    private int aaaaaaaaaa;
    @Basic(optional = false)
    @NotNull
    @Column(name = "aaaaaaaaaaaa")
    private int aaaaaaaaaaaa;
    @Basic(optional = false)
    @NotNull
    @Column(name = "aaaaaaa")
    private int aaaaaaa;

    public Ana() {
    }

    public Ana(Integer f) {
        this.f = f;
    }

    public Ana(Integer f, int ffff, int aaaaaaaaaa, int aaaaaaaaaaaa, int aaaaaaa) {
        this.f = f;
        this.ffff = ffff;
        this.aaaaaaaaaa = aaaaaaaaaa;
        this.aaaaaaaaaaaa = aaaaaaaaaaaa;
        this.aaaaaaa = aaaaaaa;
    }

    public Integer getF() {
        return f;
    }

    public void setF(Integer f) {
        this.f = f;
    }

    public int getFfff() {
        return ffff;
    }

    public void setFfff(int ffff) {
        this.ffff = ffff;
    }

    public int getAaaaaaaaaa() {
        return aaaaaaaaaa;
    }

    public void setAaaaaaaaaa(int aaaaaaaaaa) {
        this.aaaaaaaaaa = aaaaaaaaaa;
    }

    public int getAaaaaaaaaaaa() {
        return aaaaaaaaaaaa;
    }

    public void setAaaaaaaaaaaa(int aaaaaaaaaaaa) {
        this.aaaaaaaaaaaa = aaaaaaaaaaaa;
    }

    public int getAaaaaaa() {
        return aaaaaaa;
    }

    public void setAaaaaaa(int aaaaaaa) {
        this.aaaaaaa = aaaaaaa;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (f != null ? f.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Ana)) {
            return false;
        }
        Ana other = (Ana) object;
        if ((this.f == null && other.f != null) || (this.f != null && !this.f.equals(other.f))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.Ana[ f=" + f + " ]";
    }
    
}
